package xin.homeant.upms.dao.mapper;





import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;

import xin.homeant.upms.model.Permission;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author homeant
 * @since 2017-05-01
 */
public interface PermissionMapper extends BaseMapper<Permission> {
	List<Permission> getChildPermissionsByUidAndPid(@Param("uid")Integer id,@Param("pid")Integer pid);

	int getChildCountByUidAndPid(@Param("uid")Integer id,@Param("pid")Integer pid);

	Set<String> getUserPermissions(@Param("permissionIds")Set<Integer> permissionIds);
}